home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / SRS / client / include / structs.h < prev   
Encoding:
C/C++ Source or Header  |  2000-01-12  |  1.0 KB  |  57 lines

  1. #ifndef _STRUCTS_H
  2. #define _STRUCTS_H
  3.  
  4. __BEGIN_DECLS
  5.  
  6. typedef struct code {
  7.    char *c_name;
  8.    int c_val;  
  9. } Code;
  10.  
  11. /* ---------------------------------------------------- */
  12.  
  13. /* structure for all msgs.. the basic interface */
  14. struct msg {
  15.    int cmdlen;
  16.    char cmdmsg[MAXSEGSIZE];
  17. } logmsg;
  18.  
  19. /* ---------------------------------------------------- */
  20.  
  21. /* streaming server struct */
  22. struct server {
  23.    char *name;
  24.    int port;
  25. } servList[MAXSERVNUM];
  26.  
  27. /* ---------------------------------------------------- */
  28.  
  29. /* priority structure for a logmsg */
  30. struct priority {
  31.    int single;
  32.    int exclude;
  33.  
  34.    int ignpri;
  35.    int priority;
  36. };
  37.  
  38. /* ---------------------------------------------------- */
  39.  
  40. struct log {
  41.    int fd;
  42.    char *filename;
  43.  
  44.    /* FIX - make facilities and priorities dynamic */
  45.  
  46.    int facility; /* the facility type */
  47.    struct priority priority; /* priority type */
  48.  
  49.    int nsync; /* synchronize fd or not? */
  50. } logs[MAXLOGTYPES];
  51.  
  52. /* FIX - make logs[] dynamic */
  53.  
  54. __END_DECLS
  55.  
  56. #endif /* _STRUCTS_H */
  57.